#!/usr/bin/env python
# -*- coding:utf-8 -*-
import sys
import ConfigParser
reload(sys)
sys.setdefaultencoding("utf-8")


def get_mongo_conf():
    conf = ConfigParser.ConfigParser()
    conf.readfp(open('conf/global.conf', "rb"))
    return conf.get("global", "MONGO_HOST"), conf.getint("global", "MONGO_PORT")


def main():
    print get_mongo_conf()


if __name__ == '__main__':
    main()
